package com.chinasoft.reposearch.service;

import com.chinasoft.reposearch.entity.dto.SearchResultDTO;
import com.chinasoft.reposearch.entity.po.ElasticRequestParams;

import java.util.List;

public interface ElasticService {
    void createIndex(String path, String indexName);
    void deleteIndex(String indexName);
    Boolean ifExistsIndex(String indexName);
    void insertData(String indexName, String id, String data);
    void batchInsertData(String indexName, List<String> data);
    void updateData(String indexName, String id, String data);
    void deleteData(String indexName, String id);
    String searchData(String indexName, String id);
    SearchResultDTO searchDataList(ElasticRequestParams params);
}
